package com.mvd.app.model;

import java.io.Serializable;

/**
 * 不合格项目的第三级
 */

public class BuHeGeModel3 implements Serializable {
//    "[{\"Code1\":1,\"Code2\":1,\"Code3\":1,\"Name3\":\"号牌号码与行驶证不一致\"}," +
//            "{\"Code1\":1,\"Code2\":1,\"Code3\":2,\"Name3\":\"车辆类型与机动车出厂合格证不一致\"}," +
//            "{\"Code1\":1,\"Code2\":1,\"Code3\":3,\"Name3\":\"车辆类型与行驶证不一致\"}]"

    private String Code1, Code2, Code3, Name3, isCheck = "1";

    public String getCode1() {
        return Code1;
    }

    public void setCode1(String code1) {
        Code1 = code1;
    }

    public String getCode2() {
        return Code2;
    }

    public void setCode2(String code2) {
        Code2 = code2;
    }

    public String getCode3() {
        return Code3;
    }

    public void setCode3(String code3) {
        Code3 = code3;
    }

    public String getName3() {
        return Name3;
    }

    public void setName3(String name3) {
        Name3 = name3;
    }

    public String getIsCheck() {
        return isCheck;
    }

    public void setIsCheck(String isCheck) {
        this.isCheck = isCheck;
    }

    @Override
    public String toString() {
        return "BuHeGeModel3{" +
                "Code1='" + Code1 + '\'' +
                ", Code2='" + Code2 + '\'' +
                ", Code3='" + Code3 + '\'' +
                ", Name3='" + Name3 + '\'' +
                ", isCheck='" + isCheck + '\'' +
                '}';
    }

    //    @Override
//    public boolean equals(Object obj) {
//        Student s=(Student)obj;
//        return id.equals(s.id) && Name.equals(s.Name);
//    }
//    @Override
//    public int hashCode() {
//        String in = id + Name;
//        return in.hashCode();
//    }
    @Override
    public int hashCode() {
        String in = Code1 + Code2 + Code3 + Name3 + isCheck;
        return in.hashCode();
    }

    @Override
    public boolean equals(Object obj) {
        BuHeGeModel3 b = (BuHeGeModel3) obj;

        return Code1.equals(b.Code1) && Code2.equals(b.Code2)
                && Code3.equals(b.Code3) && Name3.equals(b.Name3)
                && isCheck.equals(b.isCheck);
//        return super.equals(obj);
    }

    public BuHeGeModel3(String code1, String code2, String code3, String name3, String isCheck) {
        this.Code1 = code1;
        this.Code2 = code2;
        this.Code3 = code3;
        this.Name3 = name3;
        this.isCheck = isCheck;
    }

    public BuHeGeModel3() {

    }
}
